#include <stdio.h>

void PrintHTTPResponseHeader(void)
{
	printf("Content-type: text/html;charset=utf-8\n\n");
}

void PrintHTMLStyles(void)
{
	printf("<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/style.css\" />\n");
}

void PrintHTMLHead(void)
{
	printf("<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/html4/loose.dtd\">\n");
	printf("<html>\n");
	printf("<head>\n");
	printf("<title>Block Model</title>\n");
	PrintHTMLStyles();
	printf("</head>\n");
	printf("<body>\n");
}

void PrintHeader(void)
{
	printf("<div class=\"header\">Header\n");
	printf("</div>\n");
}

void PrintSideBar(void)
{
	printf("<div class=\"sideBar\"><br>Left<br>Side<br>Bar\n");
	printf("</div>\n");	
}

void PrintContent(void)
{
	printf("<div class=\"content\">Content\n");
	printf("</div>\n");	
}

void PrintBuffer(void)
{
	printf("<div class=\"buffer\"></div>\n");
}

void PrintFooter(void)
{
	printf("<div class=\"footer\">Footer\n");
	printf("</div>\n");
}

void PrintHTMLEnd(void)
{
	printf("</body>\n");
	printf("</html>\n");
}

void main(void)
{
	PrintHTTPResponseHeader();
	PrintHTMLHead();
	
	printf("<div class=\"wrapper\">\n");
	PrintHeader();
	PrintSideBar();
	PrintContent();
	PrintBuffer();
	printf("</div>\n");
	PrintFooter();

	PrintHTMLEnd();
}